<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" />
	<meta name="apple-wap-web-app-capable" content="yes">
	<meta name="apple-wap-web-app-status-bar-style" content="black-translucent">
	<meta name="MobileOptimized" content="240"/>
	<title>查看赛事</title>
	<link rel="stylesheet" href="$!webPath/css/reset.css" />
	<link rel="stylesheet" href="$!webPath/css/style.css" />
	<script src="$!webPath/js/jquery.min.js"></script>
</head>
<body>
<div class="all">
	<div class="examine_game">
		<h2>$!activity.activityName</h2>
		<p>场地<span>$!activity.activityLocation</span></p >
		<p>时间<span>$!activity.activityTime</span></p >
		<p>报名截止<span style="color: red;">$!activity.applyDeadLine</span></p >
		<p>参赛队伍<span id="team_num"></span><span>/$!activity.teamUpperLimit</span></p >
	</div>
	<div class="examine_game_img">
		<img src="$!webPath/$!activity.picPath"/>
	</div>
	<div id="matchList" class="examine_game">
		<h4>赛事列表</h4>
		#foreach($obj in $!matchDetails)
		#set($homeTeam=$!teamTools.findTeamByTeamId("$!obj.homeTeamId"))
		<p>主队<span>$!homeTeam.name</span></p >
		#set($visitingTeam=$!teamTools.findTeamByTeamId("$!obj.visitingTeamId"))
		<p>客队<span>$!visitingTeam.name</span></p >
		<p>比赛时间<span>$!obj.matchTime</span></p >
		<hr/>
		#end
	</div>
</div>
<script>
	$(function () {
		$('#team_num').html(parseInt('$!teamNum'));
		var num=parseInt('$!matchDetails.size()');
		if(num<=0){
			$('#matchList').html('此活动没有赛事');
		}
	})
</script>
</body>
</html>